/ Assembly List / LJCNetCommon / CodeTokenizer / IsCodeXmlComment

Namespace - LJCNetCommon


Parameters
text - The text value.

Returns

True if an XML comment, otherwise false.

Syntax

C#
public Boolean IsCodeXmlComment(String text)

Check if a XML comment. (E)

Example

C#
using LJCNetCommon;

var tokenizer = new CodeTokenizer();
string text = " /// <summary>This is an XML comment.</summary>";
tokenizer.SetTokens(text);
short tokenIndex = 0;
string token = tokenizer.GetToken(tokenIndex);
bool isXMLComment = tokenizer.IsCodeXMLComment(token);
// Value isXMLComment is true.

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.